package com.example.inheritsingletable;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@DiscriminatorValue("red")   //识别列的字段值
public class RedBook extends Book {
    private String redMark;
}
